import {createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw, useRoute} from 'vue-router'
// @ts-ignore
import App from "@/App.vue";
// @ts-ignore
import Professional from "@/views/screen/tr/professional/index.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Screen',
    component: App,
    redirect: {name: 'ScreenHome'},
    children: [{
        path: 'home',
        name: 'ScreenHome',
        component: Professional,
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
